package com.teamin.entity;

import java.io.Serializable;

public class WxUserEntity implements Serializable {
	
	private String avatarUrl;//头像的图片
	private String openId; //小程序所在的平台的帐号
	private String mpOpenId; //公众平台的帐号
	private String nickName; //用户名
	private String language;//当前所处的语言环境
	private String sessionKey; //用来表示当前用户的session

	public String getUnionId() {
		return unionId;
	}

	private String unionId; //公众平台中的联合ID
	private long userId; //用户ID

	public String getMpOpenId() {
		return mpOpenId;
	}

	public void setMpOpenId(String mpOpenId) {
		this.mpOpenId = mpOpenId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}
	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public String getSessionKey() {
		return sessionKey;
	}
	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}

	@Override
	public String toString() {
		return "WxUserEntity{" +
				"avatarUrl='" + avatarUrl + '\'' +
				", openId='" + openId + '\'' +
				", mpOpenId='" + mpOpenId + '\'' +
				", nickName='" + nickName + '\'' +
				", language='" + language + '\'' +
				", sessionKey='" + sessionKey + '\'' +
				", unionId='" + unionId + '\'' +
				", userId=" + userId +
				'}';
	}
}
